package com.burgeon.backend.SHOP.service;

import com.burgeon.backend.SHOP.entity.PayData;
import com.burgeon.backend.SHOP.entity.presell.Earnest;
import com.burgeon.backend.SHOP.entity.presell.EarnestVO;
import com.burgeon.backend.SHOP.entity.presell.Presell;
import com.burgeon.backend.SHOP.service.ex.OrderExceptionApp;

import java.util.List;

public interface AppPresellService {

    String getImg(String account);

    void startPayingBalancePayment();

    //预售支付尾款
    PayData payForThebalance(String pid,String aid,String mid,String phone,String uid,
                             String openid,String token) throws OrderExceptionApp;


    EarnestVO OrderConfigData(String id);


    List<EarnestVO> presellOrderData(String uid, String token);

    void findEarnestResult(String id) throws OrderExceptionApp;

    void upEarnestState(String id,String erpId,String state);

    Earnest getEarnestDataByCode(String code);

    String agreementData(String token);

    PayData createPresellEarnest(String uid, String openid,String pid,
                                 String gid, String code,
                                 String type,String phone, String token,String comment,String emp) throws OrderExceptionApp;

    List<Presell> getData(String token);

}
